/* 出借人中心页面样式 */
body {
    margin: 0;
    padding: 0;
    font-family: "微软雅黑", sans-serif;
    background-color: #f5f7fa;
}

.head-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* 用户操作容器样式 */
.user-actions-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 用户操作容器内的退出按钮样式 */
.user-actions-container .logout-btn {
    margin-left: 0;
    white-space: nowrap;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 60px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
    margin-left: 15px;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}

/* 用户信息容器样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #f0f2f5;
}

.user-name {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

/* 确保用户名标签中线与head-container中线重合 */
.username {
    font-size: 16px;
    color: #333;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 30px;
}

.page-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    padding: 10px 20px;
    background-color: #e6f2ff;
    border-left: 4px solid #0066cc;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.logout-btn, .add-car-btn {
    padding: 8px 15px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.logout-btn {
    background-color: #f5f5f5;
    color: #666;
}

.logout-btn:hover {
    background-color: #e5e5e5;
}

.add-car-btn {
    background-color: #0066cc;
    color: white;
}

.add-car-btn:hover {
    background-color: #0052a3;
}

.search-bar {
    display: flex;
    align-items: center;
    margin: 0 30px 20px;
    background-color: white;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.search-icon {
    width: 24px;
    height: 24px;
    background-color: #0066cc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.search-icon::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-right: none;
    border-bottom: none;
    transform: rotate(45deg);
}

.search-input {
    flex: 1;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
}

.search-input:focus {
    border-color: #0066cc;
    outline: none;
}

.search-btn {
    background-color: #0066cc;
    border: none;
    height: 36px;
    padding: 0 20px;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    margin-left: 10px;
    transition: background-color 0.3s;
}

.search-btn:hover {
    background-color: #0052a3;
}

.filter-options {
    display: flex;
    gap: 10px;
    margin: 0 30px 15px;
}

.filter-btn {
    background-color: white;
    border: 1px solid #ddd;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-btn.active {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

.car-list {
    margin: 0 30px;
}

.car-item {
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.car-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.car-thumbnail {
    width: 120px;
    height: 80px;
    background-color: #f0f2f5;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.info-item {
    color: #333;
}

.info-label {
    font-size: 13px;
    color: #666;
}

.car-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.3s;
}

.edit-btn {
    background-color: #f5f5f5;
    color: #333;
}

.edit-btn:hover {
    background-color: #e5e5e5;
}

.status-btn {
    background-color: #e6f7ee;
    color: #008000;
}

.status-btn.rented {
    background-color: #fff2e8;
    color: #ff6600;
}

.no-cars-message {
    background-color: #f8f9fa;
    border: 1px dashed #ddd;
    border-radius: 6px;
    padding: 60px 20px;
    text-align: center;
    color: #999;
    font-size: 16px;
}

/* 分页控件样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 8px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.page-btn:hover {
    border-color: #0066cc;
    color: #0066cc;
}

.page-btn.active {
    background-color: #0066cc;
    color: white;
    border-color: #0066cc;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 13px;
    margin-top: 30px;
}